package com.guoyh.billocal.entity.wmodel

import io.objectbox.annotation.Entity
import io.objectbox.annotation.Id


/**
 * @CreateDate: 7/15/21 1:40 PM
 * @Author: guoyh
 * @Description: 文章List
 */

@Entity
data class ArticleBeanLocal(
    @Id var mid: Long = 0,

    var id: Int = 0,
    var apkLink: String = "",
    var audit: Int = 0,
    var author: String = "",
    var canEdit: Boolean = false,
    var chapterId: Int = 0,
    var chapterName: String = "",
    var collect: Boolean = false,
    var courseId: Int = 0,
    var desc: String = "",
    var descMd: String = "",
    var envelopePic: String = "",
    var fresh: Boolean = false,
    var host: String = "",
    var link: String = "",
    var niceDate: String = "",
    var niceShareDate: String = "",
    var origin: String = "",
    var prefix: String = "",
    var projectLink: String = "",
    var publishTime: Long = 0,
    var realSuperChapterId: Int = 0,
    var selfVisible: Int = 0,
    var shareDate: Long = 0,
    var shareUser: String = "",
    var superChapterId: Int = 0,
    var superChapterName: String = "",
    var tags: MutableList<TabBen> = mutableListOf(),
    var title: String = "",
    var type: Int = 0,
    var userId: Int = 0,
    var visible: Int = 0,
    var zan: Int = 0
)


@Entity
data class TabBen(
    @Id var tabId: Long = 0,
    val name: String = "",
    val url: String = ""
)


data class BannerBeanLocal(
    var desc: String = "",
    var id: Int = 0,
    var imagePath: String = "",
    var isVisible: Int = 0,
    var order: Int = 0,
    var title: String = "",
    var type: Int = 0,
    var url: String = ""
)